package pers.wensheng.patterns.structural_pattern.adapter_pattern.object_adapter_pattern.entity;

/**
 * 计算机类
 */
public class Computer {
    /**
     *  电脑读取SD卡的内容
     * @param sdCard
     * @return
     */
    public String readSD(SDCard sdCard){
        if (sdCard == null){
            throw  new RuntimeException("SDCard is not null");
        }
        return sdCard.readSD();
    }
}
